import http from '../utils/http'

// 将临时凭证发送给服务器
export const reqLogin = (code) => http.get(`/weixin/wxLogin/${code}`)

// 获取用户信息

export const reqUserInfo = () => http.get('/weixin/getuserInfo')

// 实现本地资源上传
export const reqUploadFile = (filePath,name) => http.upload('/fileUpload', filePath,name)

// 更新用户信息
export const reqUpdateUserInfo = (updateInfo) => http.post('/weixin/updateUser', updateInfo)